<?php

class ActionRejected_List extends BaseAction
{
    public function run()
    {
        $oCriteria = new CDbCriteria();
        $oCriteria->addColumnCondition(array('status' => 'rejected'));
        $oCriteria->order = 'date_created DESC';

        $oDataProvider = new CActiveDataProvider('TariffPlan', array
        (
            'criteria'   => $oCriteria,
            'pagination' => array
            (
                'pageSize' => 100
            )
        ));

        $this->template->oDataProvider = $oDataProvider;
    }
}